import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import { TableColumnType } from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class AreaDto extends ObjectDto implements ObjectDtoInterface {
    public id: string = null;
    public name: string = null; // 区号
    public syncStatus: SyncStatus = SyncStatus.None;       // 同步状态：   （0: 从来没上传, 1: 上传成功, 2: 正在上传, 3: 上传失败)

    constructor() {
        super();

    }

    table() {
        return {
            tableName: "Area",
            tableConstructor: {
                id: `${TableColumnType.text} ${TableColumnType.unique}`,
                // id: `${TableColumnType.text}`,
                name: TableColumnType.text,
                syncStatus: TableColumnType.int

            }
        };
    }

}



